﻿@model ContactManagement.Models.RegisterModel
@{
    ViewBag.Title = Resources.PageTitles.RegisterRESX;
}
<h2>@Resources.AccountViews.CreateNewAccountHeaderRESX</h2>
<p>
    @Resources.AccountViews.CreateNewAccountTextRESX
</p>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
@using (Html.BeginForm())
{
    @Html.ValidationSummary(true, Resources.SystemMessages.AccountCreationErrorRESX)
    <div>
        <fieldset>
            <legend>@Resources.AccountViews.AccountInformationRESX</legend>
            <div class="view-item">
                <div class="editor-label">
                    @Html.LabelFor(model => model.UserTitle)
                </div>
                <div class="editor-field">
                    @Html.DropDownListFor(model => model.UserTitle, Model.UserTitles, Resources.GlobalStrings.PleaseSelectItemsRESX)
                    @Html.ValidationMessageFor(model => model.UserTitle)
                </div>
            </div>
            <div class="clear-all" />
            <div class="view-item">
                <div class="editor-label">
                    @Html.LabelFor(m => m.UserName)
                </div>
                <div class="editor-field">
                    @Html.TextBoxFor(m => m.UserName)
                    @Html.ValidationMessageFor(m => m.UserName)
                </div>
            </div>
            <div class="clear-all" />
            <div class="view-item">
                <div class="editor-label">
                    @Html.LabelFor(m => m.Firstname)
                </div>
                <div class="editor-field">
                    @Html.TextBoxFor(m => m.Firstname)
                    @Html.ValidationMessageFor(m => m.Firstname)
                </div>
            </div>
            <div class="clear-all" />
            <div class="view-item">
                <div class="editor-label">
                    @Html.LabelFor(m => m.Lastname)
                </div>
                <div class="editor-field">
                    @Html.TextBoxFor(m => m.Lastname)
                    @Html.ValidationMessageFor(m => m.Lastname)
                </div>
                <div class="clear-all" />
            </div>
            <div class="view-item">
                <div class="editor-label">
                    @Html.LabelFor(m => m.Password)
                </div>
                <div class="editor-field">
                    @Html.PasswordFor(m => m.Password)
                    @Html.ValidationMessageFor(m => m.Password)
                </div>
            </div>
            <div class="clear-all" />
            <div class="view-item">
                <div class="editor-label">
                    @Html.LabelFor(m => m.ConfirmPassword)
                </div>
                <div class="editor-field">
                    @Html.PasswordFor(m => m.ConfirmPassword)
                    @Html.ValidationMessageFor(m => m.ConfirmPassword)
                </div>
            </div>
            <div class="clear-all" />
            <div class="view-item">
                <div class="editor-label">
                </div>
                <div class="editor-field">
                    @ReCaptcha.GetHtml()
                </div>
            </div>
            <div class="clear-all" />
            <p>
                <br />
                <input type="submit" value="@Resources.Navigation.RegisterButtonRESX" />
            </p>
        </fieldset>
        <p>
            @Html.ActionLink(Resources.Navigation.BackToLoginRESX, EActionAccount.LogOn.ToString())
        </p>
    </div>
}
